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.