[connectionagent] fix crash accessing NULL object
Merge pull request #69 from lpotter/master

[connectionagent] fix crash accessing NULL object