WorkflowModel has cleanupConnectors function that ensures that all connections have valid sources and targets and removes invalid connectors, fixes #10