Fix TC-2027
Merge pull request #3994 from studiomobile/TC-2027

[TIMOB-13162] Functions assigned to proxy property may be garbage collected