fix XML writer segfault
fix XML writer segfault

keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,SimVascular/VTK,SimVascular/VTK,keithroe/vtkoptix,SimVascular/VTK,SimVascular/VTK,keithroe/vtkoptix,SimVascular/VTK,SimVascular/VTK,keithroe/vtkoptix,keithroe/vtkoptix,SimVascular/VTK,SimVascular/VTK