SWITCHYARD-1632 NPE in DefaultServiceRegistry on DEBUG level 

Do a null check on domain and domain name to make sure we don't throw a NPE.      Added test to test for this condition.