fixing another ie8 bug where a for in loop caused "undefined" to appear in the widget list