Nullify the correct mainstream category field

Sometimes the category we're removing isn't the primary category but one
of the other categories. Handle that case.