safely handle classes with empty simpleName.