Replace the deprecated MongoException.CursorNotFound with MongoCursorNotFoundException