EE: MR "Rebase before merge" doesn't work when source branch is in the same project

EE-only, but listed here since it's a regression and since https://gitlab.com/gitlab-org/gitlab-ee doesn't allow issues.

Related to #2049 (closed).