Influence of the nuclear autocorrelation function on the positron production in heavy-ion collisions