Fix crash in SeparatorMenuItem