Don't fail when unkown domain expires am: a368323f4f am: 31b95285ff

Original change: https://android-review.googlesource.com/c/platform/external/openscreen/+/3141820

Change-Id: If54240ce5fb54b433c4d617a21f6ab194587cef4
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/discovery/dnssd/impl/dns_data_graph.cc b/discovery/dnssd/impl/dns_data_graph.cc
index 079dbf7..269b35b 100644
--- a/discovery/dnssd/impl/dns_data_graph.cc
+++ b/discovery/dnssd/impl/dns_data_graph.cc
@@ -310,8 +310,11 @@
     AddChild(pair.first->second.get());
   } else if (event == RecordChangedEvent::kExpired) {
     const auto it = graph_->nodes_.find(child_name);
-    OSP_DCHECK(it != graph_->nodes_.end());
-    RemoveChild(it->second.get());
+    if (it == graph_->nodes_.end()) {
+      OSP_LOG_WARN << "Unable to find child_name=" << child_name.ToString();
+    } else {
+      RemoveChild(it->second.get());
+    }
   }
 }