Fix show method detached repository

* R/repository.r (show): Fix S4 class git_repository show method not
  to fail for a detached HEAD