Fixed empty search string bug in search plugin