Fixed EnsureSharedAttributeSets() to re-create deleted AttributeSets