FIX: The RestResponseHandler could throw an exception when the received response was a JsonArray instead of a JsonObject