avcodec/mjpegdec: Check number of components for JPEG-LS