Bugfix in wijdialog: Case of double modal dialog, the browser stop javascript with an ERROR on close click. Must preventDefault before all other code execution