Fix overzealous check when failing transitive dependencies.