don't include query arg if no query present

Calling Elasticsearch.search() with q=None or q='' will cause it
to not return any hits, or return seemingly random hits.
Problem occurred when running term searches with the following
request body
    {"query": {"term": {"topics": "202"}}}
Perhaps the problem is that the query arg appears twice?
noted Debian pkg versions for GitPython (python-git)