Improve check for encrypted variables (#12369)- Consider a component with an encrypted parent to also be encrypted.