JakeWharton/ActionBarSherlock — pull request #511 by kevinsawicki (2012-06-07 17:37:07+00:00)
Title: Return early when current index is 0

On Gingerbread and possibly older versions of Android
ViewGroup.getChildAt would catch an exception when a
invalid index was requested.

Adding a guard at this layer prevents many exceptions
from being allocated and thrown away at the ViewGroup
layer.

https://github.com/android/platform_frameworks_base/blob/android-2.2_r1/core/java/android/view/ViewGroup.java#L3057