Fix issue when connection domain is 'null'.