Fixed an issue that was closing the dialog box if a save attempt was made without complete data.