#1226: Fix destroying Semantic UI popup, thanks to @Arkni