Stellar contributions to the line profiles of high-resolution transmission spectra of exoplanets