Fix errors in discussion xmodule

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