Fix issue with masking in PDFBOX-1893

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