Removed useless statements in ShaderProgram

Removed useless statements in some getXXX() methods in the ShaderProgram class.