bug fix: reader crashes when table of content is empty
Merge pull request #742 from houqp/new_ui_houqp

bug fix: reader crashes when table of content is empty