The absence of a table of contents made the Dart code crash. This commit adds a default TOC if non already exists.