Fix a bug in !subst where TableGen would go and resubstitute text it had