WICKET-5469 ModalWindow unload warning always displayed (even if window is closed)

Always reset window.onbeforeunload on close