Restore anchors with legacy ids. Existing docs break without them.

Change-Id: I209fc6cf877a2f051264b1d3db4f5b894c284be9