Maintain pdfquery compatible with newer and older versions of PDFMiner