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

(cherry picked from commit 8b37728be6ad5e425b346fb52fde26d29255b288)

Conflicts:
	xwiki-commons-core/pom.xml