When filtering emails with ?category=Unread and there are no unread emails, the page crashes with the following error:
TypeError: Cannot read properties of undefined (reading 'id')Instead of throwing an error, it should gracefully handle the case where there are no unread emails (e.g., display an empty state).

