MuPDF: fix potential buffer underflow