[MOCO][ZacYang]Fix rare chance when xpath parse will raise null pointer, from live project
merged pull request #50 and cleaned up the code