fix 'Cannot read property 'map' of undefined' bug in RESTAdapter when API returns an empty array