Added patch to avoid calling IDirect3DDevice7_DrawIndexedPrimitive if there is no primitive.