Fix bug 903782: Gracefully handle whitespace-only searches.