do not crash when use_servername is set but servername is not