[PATCH 2/5] xmllite/writer: Improve error handling in WriteString().