TIMOB-12487: Check for activityStackSize when terminating the activity stack since calling finish() can potentially change the size of the activity stack.
TIMOB-12487: Remove unncessary stack size check for 0
Merge pull request #3835 from ayeung/timob-12847-3_0_X

TIMOB-12487-3_0_X: Android: IndexOutOfBoundsException when backing out of an app after install from app store