Define self to prevent exception, for #6607
Merge pull request #6608 from adobe/nj/issue-6607

Define self to prevent exception