[api] fix multi-deleted repo handling crash for real