CRM-11734 - Play nice with pre-existing onBeforeUnload handler