It’s not that someone removed the guts of the door ball detent - they just fail pretty often. And when that happens the ball gets launched, the spring gets stuck halfway out, and most people mar the door trim trying to jam the door shut with the spring in the way.
I just had to fix the same...