Do not try to convert an empty array to an object

Fixes #10
Avoid throwing an exception for unknown candidates to objects

It also prevents errors if new array attributes are added to the API
response.