Fix check in loadShader()