TableGen: avoid dereferencing nullptr variable