Fixing problems with pageHiding() and IsWidget

For IsWidget pages 'pageHiding()' was called with the wrapped widget instead of the actual page.