Fix show method of non-empty repository where head is null

* R/repository.r (show): Add test if head is null

* tests/fetch.R: Add test case

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>