Fix check for pushed repository if there is no remote.