wined3d: Validate the D3D context in FindContext().