Fix ERROR when deeply nested items are parsed.

Fixes #10