Dialog: Render un-closeable during pagebeforehide. Fixes #5956.
(cherry picked from commit ae059a1f9d930200a094c846f319b772c000bb0d)