Dialog is not close if it contains invalid configuration and save button was clicked