Custom expression does not return values when the input value is NULL.