Perhaps you’re thinking of Mr. Hooper? (Except, he wasn’t a puppet.)
No, I remember Mr. Hooper dying, for real and on the show. I thought I read a story about Bert dying of cancer and Ernie being all alone. So I thought he was dead already, so to speak. Maybe he came back like Spock!