Fix Broken Logic in VerticalLayout#getCurrentItemIndex

The VerticalLayout#getCurrentItemIndex method will throw if no
item intersects the viewport center. In such cases, return the index
of the item that is nearest the viewport center.
Merge pull request #28 from WebFilings/fix_broken_current_item_index

Fix Broken Logic in VerticalLayout#getCurrentItemIndex