Ref the popover before activating the item

Otherwise the item could cause the popover to be destroyed,
for example a Quit item, and cause a warning to be printed.