Don't set has_local_changes document flag unnecessarily, fixes #3234