Protect against invalid lockfiles
Make sure the repository field is properly updated