Fixes rendering of PDFs with nested trailer dictionary

Fixes http://rudar.ruc.dk/bitstream/1800/12945/1/samlet-29Nov1035.pdf from https://bthorben.github.io/pdfRepo.