If the debug info is missing the terminating null die, we would crash when trying to access the nonexisting children/siblings. This was discovered because the test case for D98619 accidentaly produced such input.
This is the test I mentioned in the previous commit (1b96e133), but forgot to add.