Fix null pointer error in XMLParser class.