shell: fix reopening of a closed popup