Otherwise code can create bogus xwidgets for whom widget_osr and widgetwindow_osr are NULL, which can cause crashes.