[table models] Fix crash with switch form element.