fix bug in pipelines with no tasks yet!