[javascript-hint addon] Fix undefined variable bug