Fix retry condition when auto-tapping deps

Fixes #30212.