gegl: in gegl-serialize avoid negative array on index on malformed input

Avoid crash that happens when ] brackets are present without first
having a proper opening bracket.
parent 08206bb4
Pipeline #180283 passed with stages
in 14 minutes and 23 seconds