Correctly generate the CSS classes of the `FormSelectMenu` widget (see #7045)