[connectionagent] fix another crash when connman restarts