[TIMOB-13145] ensure to register local protocol handler when load from string/data

[TIMOB-13145](https://jira.appcelerator.org/browse/TIMOB-13145)