Of course you can do all sorts of things to make the electronics able to survive, but ultimately that supposedly just wasn't part of the initial design requirements they settled on.
It's good to remember that the total lifetime budget of this lander is only $121.5 million, and that includes all the staff still receiving data. It was always intended to be a technology demonstrator, not an ongoing science lab.