Update StaggeredGridView.java

Fixed java.lang.ArrayIndexOutOfBoundsException bugs during horizontal and vertical screen switching.