Corrected behaviour when the server returns an object instead of an arra...

...y (which can happen when there is only one object, or the filtering reduces the set to a single object)