Only register config component if config service location
implements PackageRepository.

Signed-off-by: crynobone <crynobone@gmail.com>