Fix valid oplog entry check