Fix crash in listing remote repositories