Workflow Analytics Crashing for Draft/Empty Workflows

Fixed crashes in the workflow analytics view that occurred when accessing workflows in draft mode or workflows with no nodes.