Destroy popover when switching views if it exists