Don't allow voting while the thread is closed

When someone closes thread there is still option
to add vote which cause error when click on add
vote button. User shouldn't be able to add vote
while the thread is closed.

TNL-152
Merge pull request #5244 from mlkwaqas/waqas/tnl152-stop-voting-on-closed-thread

Don't allow voting while the thread is closed