Moodle.2x mod/taskchain force HP results to be saved in Chrome and other browsers which have no onunload event