Makes PDF files load when xrefEntry is undefined
Merge pull request #4606 from timvandermeij/xrefentry

Makes PDF files load when xrefEntry is undefined