Fix method for count of tasks in task collection
Handle the explicit task debug case (i.e. no task collection attached to the task)

No progress bar is rendered, added defensive coding to where a task collection gets injected into the template