PDFBOX-2485: improve error messages, minor clean up code in package

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1637480 13f79535-47bb-0310-9956-ffa450edef68