RESTEASY-1049 Check availability of CDI classes

Check availability of CdiInjectorFactory before performing an instanceof