Fix an obvious mistake in search_once() casing wrong result when called
with empty 2nd argument (which also is not what should happen, should we return error?)