bugfix so that pdfinfo will not crash if the file passed is not a PDF