CheckedMenuItem: fix checkmark in high contrast mode.
Fixes #18229.

Fixes regression from 3365a6d (refs #17286), although I suppose
the real error is in the CheckedMenuItem template rather than 3365a6d.