Fixed problem where the isCompleted state of an todo was not handled propely.

Signed-off-by: Michel <info@1st-setup.nl>