GetPage requires mpPage to be an SdPage

...which is apparently not always the case; at least observed that during
CppunitTest_sd_html_export_tests.

Change-Id: If3d73249845adfa6b489e783693768e755033f4a