[api] also fix the deleted repo if not existant

This is already part of the 2.4 fixtures, but not in real life