fixed a nil pointer exception when node['domain'] is not set at all