Fix the issue when table_of_contents key isn't setup in _config.yml
Add tests for empty _config.yml