apply case updates to deleted cases

and fix test to reflect that
Merge pull request #4018 from dimagi/illegal-case-id-delete-ok

apply case updates to deleted cases