Fixed possible uninitialized property

`$this->loop` may be not initialized yet when calling `getResolver` (`$this->dnsServer` changed for consistency).