EffectChain->new(): fix check for exactly one of project/global attribute