Remove unnecessary xml nodes created during Hash#to_xml