Fix custom protected branch pattern jumping scroll position to top -- EE merge edition
EE merge edition of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10275
EE merge edition of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10275