Modified ThinkingSphinx::Search::Query.to_s to handle null conditions and conditions with empty string without error