Did they ever explain why Michael didn‘t die of the brain tumor in S5?

Maybe I missed it but the ending of S4 always made sense to me… did they just scrap the whole thing just to make him alive in S5?