Better match-data handling in perform-replace

* lisp/replace.el (perform-replace): Don't wrap replace-highlight
in save-match-data.  Use `(nth 0 real-match-data)' instead of
`(match-beginning 0)' after replace-highlight.  (Bug#36328)
1 job for master in 52 minutes and 58 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
passed #2501
test-all

00:52:58