Return PDFNull object instead of IOException if end of file reached.