Fix glGetActiveUniform/Attrib crashes due to state inconsistency

between what Chrome thinks and what the driver is.

This is caused by we intercept invalid program and generate an error on
LinkProgram rather than passing it to the driver, so the driver still have
a valid program if the previous link succeeds.

TEST=test case in the bug

Review URL:

Cr-Commit-Position: refs/heads/master@{#319746}
1 file changed