Fixed widget unweave behavior on dom destroy.