#665 Improve automatic backup: Only save if editor is dirty