Null check on field value when serializing as XElement Value cannot be set to null (a dictionary for a dynamic field can have a key with a null value)