For OpenGL 3.0 that's GL_INVALID_ENUM, so the returned value is undefined.
As it's (AFAICT) done just for debugging output, it doesn't have any real effect, yet that shouldn't be a reason to not fix it.
Also,
 is there any problem with applying the gwa file parsing fix ?
  is there any problem with applying the gwa file parsing fix ?

