Fix bug deleting cases when none exist.

Caused crash.
[Fixes #72571004]