Yes, that is correct. If the topic is closed or deleted, approving the post (in that topic) should not work. I agree that error message can be improved. Done via:
https://github.com/discourse/discourse/commit/3232ce8265a72a8cca6058fbcf1e670d41dd158f
Now the error message will be:
Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?