Fix errors in discussion xmodule

This addresses: https://openedx.atlassian.net/browse/TNL-606
Is this change supposed to be part of the PR?