protect against undefined tabs
Merge pull request #114 from roykolak/tab-undefined-protection

Protect against undefined tabs