Fix glIsTexture error case being triggered in the wrong place