fix calling of custom_value with "set" and undefined value