Add check registerClass by protocol or className

Add check registerClass by protocol or className