Don't step out of the extension array bounds to prevent triggering a GL_INVALID_VALUE.

When using the GLSL-Debugger with a private application the GLSL-Debugger
triggered a call to glGetStringi(GL_EXTENSIONS, …) without querying the
number of available extensions.

This pull request fixes this issue.