Stop when paginated API returns an empty response