Custom select: Remove dialog upon _destroy. Fixes #5935 - Dynamic Select empty when opening second time.
Tests: Integration: Custom select: Ensure dialog is removed after destroying dialog-sized select menu.
Dialog: Render un-closeable during pagebeforehide. Fixes #5956.