config: no nearest terms when no search results

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>