In case of server error (serveur unrecheable for example), there is JS error because the popup to show error does not exist. Indeed the HTML for error dialog should not be part of HTML retrieved in AJAX