clean up invalid ticket links on upgrade, #25067