Handle nonexistent files when constructing ConflictError

Closes #31051.