Fix crash when deleting the last item from the adapter.
Merge pull request #4 from timehop/fix-delete-last-item

Fix crash when deleting the last item from the adapter.