check for undefined id for anchors