Fix orphaned pipelines after repo delete (#6971)