Prevent NPE during uninstall XAR

fixing https://github.com/eXist-db/dashboard/issues/19