Fix type error in getPageContent()

fixes #699