Story 41880909: Avoided modal close buttons not working by changing how modal stacking handles a modal hide event going up the DOM