do not execute the loop when count is 0
Merge pull request #3 from nguyenhuy/IndexOutOfBoundsException_in_Common.onScrollStateChanged2

do not execute the loop when count is 0