Fix a potential crash when showing a popup over the pager.