Apple script compilation error

Describe the bug
Trying to run an apple script on touch bar prefs but getting compilation error.

tell application "Location Helper"
	set clocation_coords to get location coordinates
	tell application "JSON Helper"
		set weather to fetch JSON from "http://api.openweathermap.org/data/2.5/weather?lat=" & item 1 of clocation_coords & "&lon=" & item 2 of clocation_coords & "&units=metric&appid=32c4256d09a4c52b38aecddba7a078f6"
		set temp to temp of main of weather as string
		set cond_icon to icon of item 1 of weather of weather as string
		if cond_icon is in ["01d", "01n"] then
			set cond to "☀️"
		else if cond_icon is in ["02d", "02n"] then
			set cond to "⛅️"
		else if cond_icon is in ["03d", "03n", "04d", "04n"] then
			set cond to "☁️"
		else if cond_icon is in ["09d", "09n"] then
			set cond to "🌧"
		else if cond_icon is in ["10d", "10n"] then
			set cond to "🌦"
		else if cond_icon is in ["11d", "11n"] then
			set cond to "🌩"
		else if cond_icon is in ["13d", "13n"] then
			set cond to "🌨"
		else if cond_icon is in ["50d", "50n"] then
			set cond to "🌫"
		else
			set cond to ""
		end if
		
		set temp_round to round (temp * 1.0)
		return cond & " " & temp_round & "°C"
	end tell
end tell

On native apple script runner it runs smoothly.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):

Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)

Device information:

  • Type of Mac: MBP 15"
  • macOS version: High Sierra
  • BetterTouchTool version: 2.503

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

Note: Before bug reporting, please make sure you have the latest version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.

This works fine here (however I'm on the 2.506 alpha).

Maybe try whether updating to the alpha fixes this (get via check for alpha version updates)