Changed error message for unsaved changes, fixing #9314.