fix issue with multiple xpath references (Case:38272)

if you had a logic condition with multiple node references and an
invalid reference was followed by a valid reference the error message
for the invalid one would never show up.
Merge pull request #65 from dimagi/multiple-xpath-references

fix issue with multiple xpath references (Case:38272)