Prevent getList from throwing an exception when the endpoint doesn't ret...

...urn an array

Addresses #962