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

...ions

Fixed #1001708. No test since no reproducible test case.