If your shaver adapter died just because it was plugged in for two weeks, it was defective; go get it exchanged for a new one. 🙂
Leaving power adapters plugged in won't hurt them. They use a very tiny amount of power, but these days with modern switch-mode power adapters, it's such a tiny load it's not worth thinking about. (in the thousandths of a watt)