Made executeReadyPeriodicTasks avoid using merge() when not needed

Change-Id: I9bb3a5af6ebd12ac5a31578e17142fb0a2dba029
Merge "Made executeReadyPeriodicTasks avoid using merge() when not needed"