Fix path_exists? on empty repository.