Avoid NULL being passed to search-constraint