Port of 38587-pipelines-empty-state to EE https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17433