Don't allow commenting while the thread is closed

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

TNL-150
Merge pull request #5142 from mlkwaqas/waqas/tnl150-stop-comment--on-closed-thread

Don't allow commenting while the thread is closed