[agent] guard against dns server list being nil