fixed select field templates generation for null values when field is not required