Riemann problem for rate-type materials with non-constant initial conditions