Added error trap to xml2js node.