Bug fix for the ref_domain() method.
This method now works if no domain names have been associated with the tensors.
Authored by: bugman 2009-08-31
Parent: [r9413]
Child: [r9415]