Fix crash while trying to scroll with 0 items in adapter.