Fixed bug in item deletion; minor code refactoring

- Item deletion crashed when deleting after adding a new item.
    This was because I forgot to update the toDoItemObjects after
    inserting a new item (in unwindToList).