CI-badges not visible when CI pipelines are restricted to users.

Summary

I have a public repository where the CI pipeline is restricted to project members only:
https://gitlab.com/Marvin-Brouwer/cron-pattern-builder.

The restriction is set so not everyone can invoke pipelines without permissions, however I would still expect the CI status to be visible on the repository Readme and the npm Readme.

I double checked and it's not related to: #195801 (closed)
The repository in question uses the correct url format.

Steps to reproduce

Create a public repository, set the pipeline visibility to members only.

Example Project

https://gitlab.com/Marvin-Brouwer/cron-pattern-builder
https://gitlab.com/Marvin-Brouwer/cron-pattern-builder/badges/master/pipeline.svg?style=flat-square

What is the current bug behavior?

The image url returns a 404page, which is not a valid image.

What is the expected correct behavior?

The image should be shown.

Relevant logs and/or screenshots

image image

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

N/A

Results of GitLab application Check

N/A

Possible fixes

I'm not a ruby developer so I'm not sure where this issue resides.