Influence of magnetic viscosity on domain wall dynamics under spin-polarized currents