qtcollider: StackLayout: fix crash when removing contained widget