Fixed bug where parser crashed upon encountering malformed XML data