fix getUniformLocation return NULL when uniform location is -1

According to http://www.khronos.org/registry/webgl/specs/latest/1.0/, getUniformLocation should return NULL in some cases.

This fix make getUniformLocation return NULL when the OpenGL call returns -1.