Scrollspy: ignore invisible list items

Fixes #13071
Merge pull request #14569 from twbs/scrollspy-ignore-invisible-targets

Scrollspy: ignore invisible list items