Fix up WEBGL_debug_shaders test.

getTranslatedShaderSource() should return "" instead of null on failure.
Fixed JS error where newTranslatedSource was not forward-declared.