d3dx9: Fix an error check in D3DXLoadMeshFromXResource.