updateTabs function called only if there are tabs.

Change-Id: Idf62f2db6f0b1767f7a87289669a0834a42c6fe6
Merge "updateTabs function called only if there are tabs."