Fix crash in item deletion due to emitting an object with the wrong type.