Modified the error handling to catch non-xml errors, like privilege-related ones.
Modified the error handling to catch non-xml errors, like privilege-related ones.

withrocks/genologics,nsc-norway/genologics,jwhite007/genologics,senthil10/genologics,SciLifeLab/genologics,BigelowLab/genologics,Galithil/genologics