Revert "Scrollspy: ignore invisible list items"

Reverts #14569 in order to prevent the regression outlined in #14872.