Fix for JIRA issue PDFBOX-1804