FIX: Correctly publish messages unconditionally to admins (PR #13053)

Under certain conditions admins would miss messages when posting action in topics where they have permission.

This also fixes an error where we would sometimes explode when publishing to an empty group.

GitHub

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