fixed crash on empty search
Merge pull request #5 from holymoly/devel

fixed crash on empty search