Effect of electron doping on lattice instabilities in single-layer 1H-TaS2