Error when logging out using Firebase Auth, Firestore & Storage plugin

I am facing this error when logging out.

I understand that the problem occurs because at the time of logout the user ID is lost. This ID is used in a DataList to make a query, and I obtain it directly from FirebaseAuth (CurrentUser).

I tried hiding the error by using an Action Listener to display a custom error message, but I was unsuccessful.

Would anyone have a suggestion on how I can hide this error or obtain the user ID another way without relying on FirebaseAuth?

I tried using the unhandled errors event, but I was unsuccessful.

Tank you for your attention