fixes #164

check against null + refactor to utility
remove redundant initializer
web jsf servlet : optimisation
 NPE like pattern removal see #164