XRef::createDocInfoIfNoneExists(): don't presume that DocInfo is a dictionary

In case a PDF document doesn't comply with the PDF reference and its DocInfo
object isn't a dictionary, remove it and create a dictionary in its place.
1 file changed