fixes getDomain() for UseLocal = true;

getDomain() didn't return 'local' if there was only one DomainName defined.

Change-Id: I0613c117735c26cbfc7fadc2962db93fc5c1883b