Don't hide popover if it currently displays an alert sheet.

It would lead to a crash if a delegate has been set.