`span_at` read the end of a closed subpath's closing segment as past every stretch, so a click that landed there could leave the path unchanged. It now reads that place as the first anchor.