Handle removing files related to slideshows

#5720 
- [x] Avoid error messages in case file does not exist.
- [x] Handle orphan slide nodes.
- [x] Handle delete of a slide that is part of a widget.