src/utils_search.c: Safeguard against NULL-pointer errors.