Only display notes that are attached to files and views that exist at that moment.
This should avoid displaying notes after a file has been renamed or deleted.