Avoid using invalid OSL ShaderGroups.

If setup fails for a ShaderGroup, avoid using it.