mex_spot_finder: get rid of _G and only json-encode mexdata if a local AI exists