Adding null/undefined check in _animateTabTo.

Fixes TODO 1.
Prevents tabs re-positioning break, when tabs are not in high enough in number when scroll appears.
Need to study code more and proper fix needs to be applied.
Merge pull request #1 from vishwanatharondekar/patch-1

Adding null/undefined check in _animateTabTo.