Sorry, this is a rushed description but:
If a view is created with default options that exclude a “limit”, and the view subsequently invokes firstPage() with the “limit” specified as a query parameter, then the returned paginator fails when calling next().
It seems that it’s making a REST request with limit of NaN