Set the field attribute if its value is None or empty.