Actually check the return value before adding the widget.