Fix JBIG2 decoding issue #5026