Add check for the empty todo item

github: #3
Merge pull request #7 from javadev/#3

Add check for the empty todo item