Check if node is leader before adding nop entry to log.