Fixed bug in RDFXMLWriter.

Change-Id: Ie22f17b8d08eb1e7dc9d5d711a80851c9c582581