Added check for the layer size (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6198).
Added check for the layer size (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6198).

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