Backport assertFieldByXPath fix from 8.x
Issue #962912 by twistor, MegaChriz, Peacog, Niklas Fiekas | willmoy: Added Mapping to node summary.