d3d10: Add argument check in ID3D10Effect::GetVariableByName().