Added missing check for the number of channels. Credit to OSS-Fuzz
Added missing check for the number of channels.
Credit to OSS-Fuzz

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