Remove old widget from tab content on replace (#12931).

Change-Id: I85badfcca18e129b20ab6c5c2db0b845c8c2ea5b