fixes #699 - getPageContent() throws error when content is not HTML