WICKET-5246

Removed deprecated code using Wicket.Window.unbeforeUnload