Fix bug in Workflow::getPipeline()