The widget parameter can be null, which means that the current content has to be removed.