Don't allow commenting while the thread is closed

TNL-150
This should check the form element directly to determine whether it has been hidden rather than relying on a particular function having been called.