inject/windowInject should clear html when widget becomes null

Fixed