Fixed issue causing crash if the repo wasn't found