You know I copied the function from WSH panel mod plus. The only difference is that I made it throw an error if you don't supply a flag.
I tested these examples and they perform the same in both components.
JScript Panel
var test = utils.MapString("", 0x0804, 0x04000000); //returns empty string
var test = utils.MapString(null, 0x0804, 0x04000000); //script error
var test = utils.MapString(undefined, 0x0804, 0x04000000); //returns empty string
WSH Panel Mod Plus
var test = utils.LCMapString("", 0x0804, 0x04000000); //returns empty string
var test = utils.LCMapString(null, 0x0804, 0x04000000); //script error
var test = utils.LCMapString(undefined, 0x0804, 0x04000000); //returns empty string
Just use something like this instead...
arr[k] = utils.MapString(fileinfo.MetaValue(idx,0) || "", 0x0804, ret - 3000 ? 0x04000000 : 0x02000000);
And no, I'm not adding word wrap to the configuration window. I'll be honest and say I wouldn't know how even if wanted to!