[stable] Remove bad assert from socket profiling stat collection

Issue description: When users click 'Clear' in the DevTools Network
screen, they can see many assertion errors in the app console.
What is the fix: The assertion is erroneous, and is removed.
Why cherry-pick: The errors and stack traces are very disturbing to users.
Risk: Low, this fix has landed on the main channel and is tested on the same infrastructure.
Issue link(s): https://github.com/dart-lang/sdk/issues/61187

Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/442260
CoreLibraryReviewExempt:dart-io
Change-Id: I1f095bb46e903637c63b639ad8bd2469e5e5f3dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442700
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a48dd2..2cb141b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,9 +2,11 @@
 
 This is a patch release that:
 
-- Fixes an issue with the DevTools Network screen (issue [flutter/devtools#9203])
+- Fixes an issue with the DevTools Network screen and Hot Restart (issue [flutter/devtools#9203])
+- Fixes an issue when clearing the DevTools network screen (issue [#61187])
 
 [flutter/devtools#9203]: https://github.com/flutter/devtools/issues/9203
+[#61187]: https://github.com/dart-lang/sdk/issues/61187
 
 ## 3.8.2
 
diff --git a/sdk/lib/io/network_profiling.dart b/sdk/lib/io/network_profiling.dart
index 6f057ff..7b93929 100644
--- a/sdk/lib/io/network_profiling.dart
+++ b/sdk/lib/io/network_profiling.dart
@@ -273,7 +273,6 @@
     // Skip any socket that started before `_enableSocketProfiling` was turned
     // on.
     final stats = _idToSocketStatistic[idKey];
-    assert(stats != null, '"$idKey" not found in "_idToSocketStatistic" map');
     if (stats == null) return;
     switch (type) {
       case _SocketProfileType.endTime: