Added support for Apple mobile devices with a broken 'beforeunload' handler.