Strictly assert type of searchQuery

Honestly- I did not try very hard to figure out why it was undefined in the first place locally but here is a safe patch that will ensure searchQuery really is a string (rather then undefined in my case which dies on toLowerCase)