Corrected error on empty search string.
Merge pull request #12 from MorganDawe/7.x-Empty_search_fix

Corrected error on empty search string.