Fix various issues related to discussion tab xblock