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