fixes bug 1081366 - Don't log empty searches