[Bug 5787] Script editor complains about truncated files