Fixes issue #9: Prevent an IndexOutOfBoundsException by ensuring the tabs have been added to the ActionBar before ActionBar#setSelectedNavigationItem(int) is called.
Merge pull request #10 from justinmuller/issue-9

Fixes issue #9 .