GL edge cases.

Fix null pointer reads and writes in glGetUniformIndices(). Fix cases where GL layer might throw a JS exception if a GL call fails. Fix null pointer writes if zero is passed as an out pointer in multiple glGet*() calls. @kripken: Could you give this a brief look?