Wrong build-error / build-passing displayed

In Travis and on my Github page, in the last few days, sometimes a wrong status is shown.
Even though the build obviously passed, a build-error icon is shown:

Looks like a duplicate of