Make :data() on an empty Tensor return nil rather than segfault.
Merge pull request #60 from timharley/master

Make :data() on an empty Tensor return nil rather than segfault.