Fix for incorrect feature diffs.

Fixed an issue that sometimes caused feature diff to incorrectly report attributes as modified.