UI: Coverity fixes.
Coverity fixes for Grib jpeg2k support.