Fix NPE when trying to save a memo that has already been deleted