Added some methods helper in Document
Don't stop building if toc builder fails