iOS 8 compatibility

Only display popover if we have a presented view controller (iOS 8 dismisses VC before we get here)