prevent ClassNotFound exception for emtpy class name

https://issues.apache.org/jira/browse/CB-5537