Fix for when type isn't present in pages dictionary

This is fix for issue mentioned here: https://github.com/mstamy2/PyPDF2/issues/65