Adapt to API change in UserAgent

NB: Do not merge it until the counterpart patch gets merged into connman-qt.