Defer text generation in n2cq to avoid crash on empty history.
Extend n2c and n2cq to not crash on empty history.