[Fixes #46818699] debug toolbar appears in every modal popup