Fix a bug triggered by missing a virtual on some transitive edge, in a subdag of a pure build dependency.