FIX: Always render topic counts (PR #13563)

A post is rendered multiple times when it is being loaded. Sometimes, not all information is available and the best link in the Onebox cannot be found.

I could not write a test because I think the bug is caused by a race condition. The new condition should “fail” more gracefully, until the next render happens.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there: