Fix #1602

This hides all popovers before loading a new page.