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/trunk@1551220 13f79535-47bb-0310-9956-ffa450edef68