PDFBOX-2306: be lenient, allow stream to end with endobj

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/1.8@1625736 13f79535-47bb-0310-9956-ffa450edef68
PDFBOX-2296: don't call createFilteredStream() with an expected length if we know that length is wrong

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