Adversarially-Robust Inference on Trees via Belief Propagation