Added None-check for cursor in oplog.