Refactored recent changes in RpcConnection in order to prevent NPEs on non-existing collections.
Refactored recent changes in RpcConnection in order to prevent NPEs on non-existing collections.

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

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