fix TOC issue with last document in DB
Merge branch 'master' of github.com:ARTFL-Project/PhiloLogic4