Fixed NPE in BeansWrapper on (at least) IBM J9 VM.