Fix non-existent object deletion.