jasmine.LayoutValidator cleanupInvalidObjects removes the widget from invalid components when a widget gets removed (from jasmine.specs)