Bug 1541846 - Ensure namespace-aware “clear the stack” handling r=smaug