Fix path detail page where deleted objects were shown (fixes #1302)