[api] fix double render crash when trying to delete a not existing repo via request accept