Made executeReadyPeriodicTasks avoid using merge() when not needed