Only trigger a popup's default button if it has one.