WICKET-4909 ModalWindow overwrites window.onbeforeunload