Handle dismissing the popover by tapping outside.