When linking a chained ContainmentPathElement, get the previous element
by going up the containment hierarchy instead of getting the list of
ContainmentPathElements.