Error management if server is unavailable

When the server is not responding, we need to test
for an empty result in the error callback.

Solves: Issue 5