fixed a bug where emitted an error would also emit done
Merge branch 'master' of https://github.com/yanush/simple-xml-parser