Fix a NPE in DnsMonitorService