Don't make the same ES query twice if there are no results (bug 975102)

https://bugzilla.mozilla.org/show_bug.cgi?id=975102

This is a workaround while we wait for mozilla/elasticutils#212