Fixed link status check of OpenGL shader object

Status variable was not initialized because glGetShaderiv() call ended up with GL_INVALID_ENUM error