Hi @ryanp94,
Thank you for reporting this issue. The error is due to the name of the Scale property changing when the Uniform Scale checkbox is toggled. If you replace the name "Scale" with the index of the Scale/Scale Height property e.g. "...effect("Transform")(4)", it will not error when the name of the property changes.
We're aware of this issue and will be investigated possible fixes for a future version of After Effects.
Thanks again for reporting this issue,
- John, After Effects Engi
...