Guard aggainst empty list.
Merge pull request #56 from cz4rny/master

Deleting from empty list fix.