Fix when domain object id not set (no FQDN on server)

Just a very small fix.

Regards
Andreas