improvement to deployment service to avoid meaningless NPE exceptions when kbase/ksession cannot be found