catch syntax errors if search term includes characters not allowed as
jquery selectors (we don't have popular search links forthem anyway).
https://projects.ecoinformatics.org/ecoinfo/issues/6046