Fixing issue with domain that were not set in config so returned nil,
which caused unknow-host error.