[connectionagent] more crash fixes.

move UserAgent initialization to whenever connman becomes available.