Added extra check to avoid use of uninitialized value. Credit to OSS-Fuzz
Added extra check to avoid use of uninitialized value.
Credit to OSS-Fuzz

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