Fix issue #18 for non existing index in factory widgets.