Ensure that the searchText is never undefined.

Fixes #174