We need to always remove the widget when you sync a non-visible widget, even if we already have it, because otherwise we'll try to sync it with null again later, which causes a crash. Test in #938.