Panel: Invalidate _openedPage upon pageshow before recomputing wrapper

Fixes gh-7711
This should just be the first line in `_getWrapper` then we don't need an anonymous function here