Fixes a bug where if a D3D9 program recreates its device the capture would become invalid. Certain games (especially blizzard games) will completely recreate their Direct3D device if a critical D3D9 error occurs.