Switch editor - type group labels are not visible

This bug occured only when building the select menu of the switch type
multiple times, ie the menu was correctly displayed only the first time
the switch editor was called.

This commit also fixes an error in the log related to HTML::FormHandler.