PDFBOX-1769: avoid false error messages when checking xref tables, calculate the correct number of bytes to be unread

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