Fix exception when calling saveAll with deleted instances in memory (#40)