Handle null scripts with no path.
Use StringUtils.