Fix compute.distinct when search[value] is empty.