Scrollspy: ignore invisible list items

Fixes #13071