Fixed issue #8695: Exception when creating a new attribute in token