fixed bug on undeleted connection object
Jira-issue: WP-1226