fix bug for after close course
diff wrong and right exercises
make select exercises can support rich content
 fix bug for avoiding nil
remove closed courses homeworks from need_modify_homeworks