Bugfix in notification filtering logic

Earlier the notification system swallowed some notifications for private annotations.