SWITCHYARD-1474 potential NPE in JCAActivator

elliminate bad manner coding which leads to NPE