Fix 500 while renaming repo, fixes #7400

#### What does this MR do?

This PR fixes a regression when renaming a repo. Instead of relying to the dirty state, it get's the new path from update service

#### Why was this MR needed?

When renaming a repo, a 500 error is raised.

This PR fixes #7400