FIX: One-by-off error in topic show action (PR #13183)

The not found condition did not work for topics with chunk_size posts, because it considered it has two pages, but it only has one.

GitHub

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

Any changes we could also add a test here as well?