A teacher who is under contract in a school district in the respective field of study that is being offered by distance learning pursuant to this subchapter shall not be terminated by the school district because of the availability of distance learning courses.