Do not clear the text display area when the user uploads no files

This is an improvement to the logcat filtering site.
This CL prevents the text display area from being cleared when
the user clicks on Upload File button and then selects no file
(e.g. hits the escape key or closes the file selector dialog)

Bug: 438500751
Change-Id: I9d4a9f2c5bbbf6c58be3517a909dbb94d1e5a9d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6881805
Commit-Queue: Martin Kong <martinkong@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1506116}
diff --git a/tools/android/logcat_filtering/script.js b/tools/android/logcat_filtering/script.js
index c71cd7d..5b137383 100644
--- a/tools/android/logcat_filtering/script.js
+++ b/tools/android/logcat_filtering/script.js
@@ -254,9 +254,6 @@
       textDisplayArea.innerHTML = 'Encountered an error when reading the file.';
     };
     reader.readAsText(file);
-  } else {
-    setUpElements([]);
-    textDisplayArea.innerHTML = 'Please select a file.';
   }
 }