Fixed errors in discussion XModule, caused by c2716d4 [TNL-606]

Co-Authored-By: jmclaus <jmc@edx.org>
Co-Authored-By: jsa <jsa@edx.org>
Merge pull request #5554 from edx/jmclaus/fix-errors-discussion-xmodule

Fixed errors in discussion XModule