Fix http://stackoverflow.com/q/25663434/157882 Don't rely on
BeanManager#resolve() never returning null.