The Impact of the Mass Spectrum of Lenses in Quasar Microlensing Studies. Constraints on a Mixed Population of Primordial Black Holes and Stars