Fix project and todo input

Fix two issues:
o acceptance of an empty project name
o assertion failure when canceling user input when creating a new todo