404 error when you revert a tag name after changing it without reloading the page

Fixed in #31049. Renaming a tag back to its previous name no longer causes a 404.