Fixing regression introduced when parsing nested XML.