dynamically generated attributes return nil if the field name is nil