check if conditions value_type is 'Value' before trying to fix the formatting

condition value fields should not be formatted if their value_type is not 'Value', otherwise, for value_type 'Field', the fields name will be lost if the field type is not 'string'