[DF-3490] Added aditional check for unsaved changes.