Only pass params which are set

Don't pass query params to Solr if they aren't set.  This fixes a bug
where if you don't use a field name in the query nor set `df` then
Solr would barf with a parsing failure because `&df=` was being passed.