d3dx9: Improve argument check in D3DXFindShaderComment().