Removes the onbeforeunload handler at end of activity

[#46624727] At the same time as we send the "Activity completed" action to Google Analytics, we'll also turn off the handler that posts the warning alert, so you can reload/leave then without a warning.
Merge branch 'activities-4-5-dev' into activities-4-5