Fix NPE & remove CDIExtension as it causes memory leaks

- fixes nasty NPE https://issues.jboss.org/browse/WFLY-2641 not sure if fix is proper
- fixes memory leak in CDIExtension where BeanManager was stored as static