Fixed a bug in Tagged Search that counted a string with only whitespace as a query.

Closes #17.