Fix errors in discussion xmodule

This addresses: https://openedx.atlassian.net/browse/TNL-606