this adds back the dismiss behavior of "popups" that was lost from the magit-popup -> transient update