Fix index tag mode in XML getentities output

Change-Id: I0614d0454d885f396c66211f968325ceafbe37ff
Merge "Fix index tag mode in XML getentities output"