Bug 1094083 - Make browser-element Handle nested alert gracefully. r=smaug, a=2.0m+

Don't delete this._windowIDDict[outerID] until the last modal prompt is
closed.