Fix for "UIPopovercontroller dealloc reached while popover is still visible"