Make build status image refer only to mainline branches

We don't want to show failing topic branches in the status image for
each project's readme.

[ci skip]