Fix for upload warning event for window.onbeforeunload