Better error checking for GetSession in PageControl.