Avoid unnecessary call to ‘continueWithBlock:’ when a task is completed