jpegdec: Fix incorrect logic in EOI tag detection