pkg/tar: tar_test.go - fixing possible nil pointer dereference

Playing a little with tar.go caused a panic in tar_test.go. This fixes it.
Merge pull request #310 from gprggr/tar_test

pkg/tar: tar_test.go - fixing possible nil pointer dereference