Fix for pdfminer 20140328.
Port to pdfminer 20140328.