Fix notifications pointing to a wrong repository, or trying to load a deleted file preview (load of stat failed in the logs)