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.

(cherry picked from commit f65925debca2997f5d8cd347f7b552ae133fff20)