Fix problem with edit-text widget gaining class="undefined"

Fixes #269