Added warning for trusted_domains after CLI upgrade

If trusted_domains is not set after a CLI upgrade, show a warning in the
output.

Backport of 1a11682 from master