Check for overlay scrollbars on all platforms

Make sure the code that fixes the scrollbar style only fires once.

Issue #2451