XCOMMONS-480: Attributes are lost when converting StAX events to SAX events

(cherry picked from commit 7a8f91bd99549b71a87edb6d2f1a4db345ee6789)