fix #1000 TemplateTestCase.getWidgetInstance does not work

Fixes an issue when trying to get an instance of the following HTML widgets using the widget ID:

- CheckBox
- RadioButton
- Select