User can flag the post whether thread is closed or open

When the thread is closed user can't able to report
the thread and it gives the error. User can now report
thread even it is closed.

TNL-151
Merge pull request #5038 from mlkwaqas/waqas/tnl151-closed-thread-flag-post-error

Flagging posts in closed thread causes an error