Added shader validation to the Shader::link function.