Fix delete for new items without id.