Fixed a bug where Hatch was crashing when invalid XML was read