TIMOB-14505 set activity for avoid null exception

https://jira.appcelerator.org/browse/TIMOB-14505