Problem
Double redirects, if they exist at the moment of rebuilding the new terms store will cause the script to fatal, as those double redirects are not being handled properly (both proeprty and item terms rebuilders).
Solution
Double redirects need to be skipped. Only the final destination item's term need to be moved to the store.