reStructuredText: do not apply an internal link target id to the
subsequent element if that already has an id