Check CacheService registration  before collecting stats

This registration check should be made while collecting stats for mancenter, otherwise it needs jcache api dependency even it is not used.