Fix 500 while renaming repo, fixes #7400