Merge Request: unchanged lines on renamed files cannot be commented
### Summary
On a merge request, when trying to add a comment on an unchanged line, on a renamed file, the error "Saving the comment failed".
Upon investigation in the debugging console of the browser, it can be read "must be a valid line code"
### Steps to reproduce
1. Create a feature branch
2. Rename a file
3. Do some changes in the file
4. Create a Merge Request for it
5. Try to comment a line that hasn't changed in this file
### What is the current *bug* behavior?
A red error message "Saving the comment failed" appears. The comment is not added.
### What is the expected *correct* behavior?
The comment should be added, as usual.
#### Results of GitLab environment info
Selfhosted Gitlab instance 15.9.2-ee
issue