Fix bug where dom was not being parsed before checking for missing anchors, resulting in incorrect warnings about pointing to supposedly-non-existing anchors (they did exist).