Fix a bug in resolver's resume_dslookup() function
A recent refactoring in 7e4e125e had introduced a logical error which could result in calling the dns_resolver_createfetch() function with 'nameservers' pointer set to NULL, but with 'domain' not set to NULL, which is not allowed by the function.
Make sure 'domain' is set only when 'nsrdataset' is valid.
Closes #3839 (closed)