Ensure source_root value is not undefined