Fixes #455 - when submitting a modal and an error occurs but there are no validation errors, display error messages to the user in the modal
Fix jshint