FIX #1971: Check if the search term is set