Fixes a bug introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11412: https://gitlab.com/gitlab-org/gitlab-ce/builds/16412893