Fix showing unread logs count in UI (after refactoring).