Fix for when type isn't present in pages dictionary
Merge pull request #66 from Rob1080/master

Fix for when type isn't present in pages dictionary