Fixed index out of bounds (https://oss-fuzz.com/v2/testcase-detail/5473633150435328).
Fixed index out of bounds (https://oss-fuzz.com/v2/testcase-detail/5473633150435328).

Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick