Fix 'is dialog open' bug in minified code