Fixed black square bug on iOS8.
Hotfix:Crash when number of items is 0.