On the nuclear matter approach to the heavy-ion optical potential