Effect of continuum absorption on the polarization of resonance lines