Enable loading of PDFs with invalid document information dictionaries

Fixes #2853.

/cc @yurydelendik