fix(modal): check for overflow hidden
fix(modal): check for overflow hidden

Check if appendToElement has scrolling disabled before adding
the scrollbar padding.

Fixes #6037
Closes #6041

fpipita/bootstrap,shootermv/bootstrap,icfantv/bootstrap,BookingBug/bootstrap,byronigoe/bootstrap,RobJacobs/bootstrap,Kpler/bootstrap,looker/bootstrap,byronigoe/bootstrap,Servoy/bootstrap,vfiles/bootstrap,Kpler/bootstrap,Servoy/bootstrap,RobJacobs/bootstrap,fpipita/bootstrap,caoruiy/bootstrap,BookingBug/bootstrap,vfiles/bootstrap,caoruiy/bootstrap,angular-ui/bootstrap,shootermv/bootstrap,icfantv/bootstrap,looker/bootstrap,angular-ui/bootstrap