util: check for frag/vertShader=0 before attaching