Fix issue in IAttributeRegistry.GetAttribute<T>