Fix modal backdrop overlaying the modal's scrollbar

Fixes #14916.

/cc @cvrebert 
I'm not a fan of making the `<div>` using jQuery since it's probably way slower.