Aries-1238: Fix for ARIES-1216 can cause NPE if classToProxy is a class from the boot loader

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