Search: Fixed a crash when the entire query string is made up of punctuation