Made a change to prevent a null pointer exception when running an XML file through the GUI.