The current example for skip fails when the pageNumber is 0

When pageNumber is 0, the current example -1 times pageSize which can result in negative value and yield the following error: !ERROR stack MongoError: bad skip value in query