This is incorrectly removed. `PyDict_DelItem()` should be followed by this check.