Add some assertions in MetricsSystem::registerSource()