Only add anchors if headlines do have an ID