Energy loss versus shadowing in the Drell-Yan reaction on nuclei