That programming is a talent is not a myth, and while my life is currently devoted to developing a platform to encourage more people to learn the basics of computer science, I will certainly never say "anyone can learn how to code" any more than I'd say "anyone can become a concert pianist" or "anyone can become a master painter." Good programming is an art, and requires talent on the part of the programmer. There's…
I don't think that you learn to code "just in case." I learned because it let me automate some things and later, let me make my own games. It turned out I've been good enough to get paid for my level of "talent," but I'd still be happy I learned, besides the joy of the mental excercises, I've also been able to automate alot of (ussually self imposed) challenges in my life.
I also learned to play the piano in my teens. I'm a sucky digital-artist as well. It was obvious I'd never be a concert pianist or master painter or even get paid for either. It baffles me that people can go through life without being able to play an instroment or paint, but I didn't learn "just in case"; I've been making use of both for my own enjoyment and unpaid sharing with others.
I think a great many of your students who lack talent will get great use out of the ability to automate processes on a computer and maybe gain life long enjoyment, even if they don't have the presupposed talent.