Fixing a bug to do with edits after a todo had been deleted.