Backends: WebGPU: Fixing an issue when opening a popup in the wgpu backend (#7191)

Amend 2b0bd40b9
2 files changed