Fix a crash when repo name is NULL