Added assertion to catch stuck expression/statement generation.