Allow sectionId to be deeper in the dom

When viewing a single paragraph (as we do with the nameless headers in interpretations), we don't surface the id of the element in the outermost section.

This adds logic to account for this case.