Remove the visibility data before calling hide on the popover.

This prevents recursion errors in some cases, where we never reach the
data removal because we're continually propagating the hide event.
Merge branch 'ghbook-ticket455' into testing