TOMEE-1334 trying to avoid NPE when CDI context is not yet started

git-svn-id: https://svn.apache.org/repos/asf/tomee/tomee/trunk@1620375 13f79535-47bb-0310-9956-ffa450edef68