Fix paginator NPE when the API returns no results