AST-1473 Avoid xt::allclose() on empty xtensor
Since an empty XTensor has a null pointer, and xt::allclose uses that pointer internally, it triggers the undefined behavior sanitizer.
Since an empty XTensor has a null pointer, and xt::allclose uses that pointer internally, it triggers the undefined behavior sanitizer.