Fix JSONException case in doSearch() - fixes #139

This actually was pretty bad - it was failing with 'no internet connection' when
there were no hosts, because it was always assuming that there was an
accounts object, and when there were no hits, it wasn't there.