Some expected attributes might not end up in the compiled shader. In this case, skip calling enableVertexAttrib