Fix 1420091: Crash when deleting vertex items. I don't think this is the right fix...