Added checks to avoid use of uninitialized value (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7702).
Added checks to avoid use of uninitialized value (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7702).

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