Fix project-file error caused by empty script ref