Well I'm back, and this bug has never been fixed in Objective C, and I'm pretty sure it also persists in Swift.
The problem is that clickedPathItem is readonly and returns a reference to the clicked item, but pathItems is "copy" and does not contain the clicked item. Copies likely also copy the enclosed secretCells. Both indexOfObject: and indexOfObjectIdenticalTo: return NSNotFound and are therefore useless. While I could try to find the index by comparing titles, that is also useless because URL paths can contain multiple titles that are identical. So far, I have not come up with a workaround. I'm trying to get rid of compiler complaints about using deprecated cells.