fix #6530: save the unpersisted entity before closing EditFromSelectionWizard