Fixed a bug causing the build to break when there is no bibliography page and there is a ToDo page.
Now the ToDo page is independetn(does not belong to any chapter) like the "Gradebook".