PDFBOX-1796, PDFBOX-1585: Fix for infinite loop in parseCOSHexString

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