When environmental variation short-circuits natural selection