The spread of infections on evolving scale-free networks