Use getCategoryLinks when renaming categories.

This allows us to skip categories included from translcuded templates. This is a potential fix for bug 58084.

Change-Id: I05fa90523f718f09de83d03aab3bd9d031e7cbbb
Merge "Use getCategoryLinks when renaming categories."