Fix problem when domain was not set
Fix problem when domain was not set

domain was checked even if domain not defined,
make sure domain is defined before trying
to use it.

xcat2/confluent,xcat2/confluent,jjohnson42/confluent,xcat2/confluent,xcat2/confluent,xcat2/confluent,jjohnson42/confluent,jjohnson42/confluent,jjohnson42/confluent,jjohnson42/confluent