s4: torture: Don't crash if connections fail and treeXX variables are left as NULL.