fix bug in metadata tree writing


git-svn-id: svn+ssh://svn.cern.ch/reps/atlasoff/Database/AthenaRoot/AthenaRootComps/trunk@568383 4525493e-7705-40b1-a816-d608a930855b