Add null attribute to field when value is null