added check for not null in widget.unregister in dishwashersimulation