[TIMOB-16059] Fixed bugs with handling JavaScript syntax errors when min...

...ifying JS code for iOS and Android device and distribution builds.