HPCC-10121 Revise based on comments

Replace xpath.clear().appendf() with xpath.setf();
Add !sashaServerIp.isEmpty() check before using sashaServerIp.