Fix a bug of LessonStudyView, books could be none