Fix #12375: stop using document.body.scrollTop as it's deprecated in the strict mode

Closes #12377