Variable loses value after ToText

Oh how silly of me. I was deleting the object while this was all happening… That’s why half way through it loses reference. MAtttt Daemmonnnn