[BUG #7352] getWidgetById() in destruct method caused a ScriptError on reload