Verify that a symbol is not duplicated in extractDependenciesFromSrcs

Bring back an assert that was removed by accident.