Fix JS reporting error when there are no sourcemaps