WinUI: Don't crash by referencing a nullptr when changing the rendering resolution.

Should fix https://github.com/hrydgard/ppsspp/issues/5436.