Fixed issue with modal dialogs that close themselves whilst trying to navigate to another page not working with Chrome/Chromium