Altiscale rest-client

Patch for 'NoMethodError: undefined method closed? for Hash' related to '[]' valid json return.
For example, fetchall groups if we do not have any group.