Fixed bug 1691177 leading to "attribute X has no parent" error.
Fixed bug 1691177 leading to "attribute X has no parent" error.

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

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