do not do empty search

Signed-off-by: Zeljko <zeljko@zwr.fi>