Fix an issue with glDeleteProgram and glDeleteShader not cleaning up the GL.programs and GL.shaders array of already deleted objects.