hackney:request can also return {error, ...}

This fixes crashes when trying to do elasticsearch queries when e.g. the host is down.