Fix some coverity issues with Grib2JpegDecoder.