Refs #6180 - make sure the task label is set before the planning starts

With this fix, we can rely on the label not being nil until the planning
finishes.