PDFBOX-1036: avoid an endless recursion

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