Fixed: potential NPE in fn:doc, fn:document, fn:collection.
Fixed: potential NPE in fn:doc, fn:document, fn:collection.

svn path=/trunk/eXist-1.0/; revision=2904

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