Scrollspy: ignore invisible list items

Fixes #13071
Good call.