Fix automation upgrade function so that all actions within the task get updated

This is the result after upgrading from Datapoint 6.1 to 6.2.

Note how only the first action item got updated.

Please fix so that all of the action items within a task get updated.