Fix C&C tooltip crash (regression from #4156).