Don't try to delete an already non-existant object (#2653)