MOBILE-717 page: Correctly hide the modal dialog to not block layers behind