fix crash with plugins when widget is null