checking for zero-element tensors in Copy

fixes #24