[TIMOB-18155] (3_5_X) TabProxy protects its own JSObject

Cherry _pick PR #6466 into 3_5_X

Fixes [TIMOB-18155](https://jira.appcelerator.org/browse/TIMOB-18155)