I think you need to speak to @radumereuta about this. It seems very odd to me to be expecting a variable like this to be null. It also seems strange to me to need to change the actual logic of this step beyond what is actually modified by FlattenTerms.

What exactly was the problem you ran into when you tried to solve things the way I suggested? Why was that route abandoned?