Fix missing Git clone button when protocol restriction setting enabled
If Git clones are restricted to either HTTP or SSH-only in the application settings, the clone button would not show. The refactoring in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22196 broke this.