Fix entities in attributes only working for root node. RT #89402
release 5.1