runtime: fix critical failure in connection management update in some bad interaction with stopped deployments (closes #2)

See commit message for the details.

This is tested on the orogen_loaders branch, but untested on master. @goldhoorn and @cclausen, please test and tell me if I can apply it to master.