[TabBar] Fixed crash in tabSizeHint (division by zero).