ofXml.cpp: fix crash on empty documents when setting values