mesa: Fix valid texture target test in _mesa_GetTexLevelParameteriv()