Fixed potential crash when removing a widget (and thus also when closing the list from a combo box)