D3D: Fix crash on emulation reset that was using an already deleted object cached in a global variable.