[MOCO][ZacYang]Fix rare chance when xpath parse will raise null pointer,...

issue related to live project encountered issue with moco server keep retrunning 400, caused by null pointer.