Fixes same issue in JFormFieldMenuitem.