Whenever the boundaries of a district shall be changed so as to transfer an area from one district to another district of a different classification, the provisions of this chapter shall also apply to any nonconforming uses existing therein or created thereby.