Support corrupted pdfs that are encrypted but lack 'ID' in trailer

Fixes #2085.

Couldn't include the test pdf since the link has some kind of timeout mechanism on it.