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.