Fixed another empty repository exception.