Couldn't update records with uniqueness validation

This fix allows records with uniqueness validations to be updated. Currently, when it searches for other records with the same value for the specified attribute, it finds itself, and marks the record as invalid.