fixing a possible NPE, when the class name is null
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-stratos