Fixed failure to compile scripts in js if no scripts found.