[api] do not crash when multiple path elements point to deleted repos