Prevent onbeforeupload from firing in IE9. Fixes #1811.