fix exception when chrome-cli executes js to extract json object or number.