fixed data transformer for null values when creating form with form.factory