[TabWidget] Fix showing empty tab title when adding new tab

Regression from recent commits