Initialize List and Nil so the XML parser does not introduce race conditions

Fixed #1001708. No test since no reproducible test case.
Merge pull request #442 from dragos/issue/race-condition-xml-1001708

Initialize List and Nil so the XML parser does not introduce race condit...