Fixes a case where variable renaming due to module concatenation caused the generated code to look up a different property than the source code, when combined with a default value for the property Closes #12712