Dialog: adjusted pagehide handler to not remove pages when dialogs open. Fixed #5239

Dialog: adjusted pagehide handler to not remove pages when dialogs open. Fixed #5239 - dialog: External page being reloaded when dialog closes