Fix validation of attribute codes uniqueness.