Added check to see if todo input is blank

Without this check if you hit enter on a blank input it would throw a typeerror
Merge pull request #1571 from Robdel12/patch-1

Added check to see if todo input is blank