getUniformLocation returns WebGLUniformLocation object even if there is no uniform in program (for example, getAttribLocation returns -1 in this case).
How to check if an uniform really exists?