Cursor is not 'null' anymore when there is no next page

It’s a known issue that has happened before and has been occurring over the weekend.

Best solution is to test that the page contains less than 100 records and then stop. As well as testing for the presence of a cursor

See also

Related to your issue

We don’t expect a fix till at least this time tomorrow, and you should also add defensive code in case it happens again