Fix crash when fetching paginated data with malformed response