When the descendant generator returned a NULL structure, the generator would crash. Now it uses a special cEmptyStructure class instead.
Ref.: #987.