Catch NPE in XMLWriter.
Catch NPE in XMLWriter.

svn path=/trunk/eXist/; revision=6896

hungerburg/exist,joewiz/exist,olvidalo/exist,jessealama/exist,kohsah/exist,shabanovd/exist,shabanovd/exist,jessealama/exist,jessealama/exist,eXist-db/exist,wshager/exist,opax/exist,patczar/exist,hungerburg/exist,olvidalo/exist,olvidalo/exist,hungerburg/exist,jensopetersen/exist,ambs/exist,adamretter/exist,windauer/exist,MjAbuz/exist,windauer/exist,olvidalo/exist,eXist-db/exist,wolfgangmm/exist,patczar/exist,eXist-db/exist,joewiz/exist,wolfgangmm/exist,joewiz/exist,shabanovd/exist,patczar/exist,jessealama/exist,jessealama/exist,windauer/exist,dizzzz/exist,wshager/exist,zwobit/exist,jensopetersen/exist,RemiKoutcherawy/exist,RemiKoutcherawy/exist,adamretter/exist,joewiz/exist,ljo/exist,zwobit/exist,adamretter/exist,adamretter/exist,lcahlander/exist,shabanovd/exist,opax/exist,patczar/exist,windauer/exist,ljo/exist,kohsah/exist,kohsah/exist,dizzzz/exist,kohsah/exist,opax/exist,dizzzz/exist,wolfgangmm/exist,ambs/exist,eXist-db/exist,ljo/exist,shabanovd/exist,olvidalo/exist,opax/exist,wshager/exist,joewiz/exist,lcahlander/exist,patczar/exist,ljo/exist,zwobit/exist,lcahlander/exist,MjAbuz/exist,wshager/exist,jensopetersen/exist,windauer/exist,eXist-db/exist,jensopetersen/exist,hungerburg/exist,ambs/exist,lcahlander/exist,windauer/exist,wshager/exist,hungerburg/exist,jensopetersen/exist,zwobit/exist,lcahlander/exist,wolfgangmm/exist,kohsah/exist,dizzzz/exist,MjAbuz/exist,wolfgangmm/exist,RemiKoutcherawy/exist,ljo/exist,wolfgangmm/exist,MjAbuz/exist,ljo/exist,ambs/exist,dizzzz/exist,shabanovd/exist,jessealama/exist,joewiz/exist,adamretter/exist,eXist-db/exist,jensopetersen/exist,RemiKoutcherawy/exist,RemiKoutcherawy/exist,opax/exist,lcahlander/exist,MjAbuz/exist,zwobit/exist,RemiKoutcherawy/exist,adamretter/exist,kohsah/exist,MjAbuz/exist,dizzzz/exist,ambs/exist,patczar/exist,zwobit/exist,wshager/exist,ambs/exist