Fixed minor bug causing empty repo not to show error.