Missing null-check for 'name'. KeyedCollection will throw if key is null.