Handle undefined searchText value in tagToggle
Don't prepend space when appending to the search if the search is empty.