Since you have been able to reproduce this issue, could you provide steps to reproduce it in a clean project? I have attempted to use a validated get inside of a function, but I am not seeing the error that you are describing.
I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.