Trailing blank line does not overwrite HasPendingChanges