Handle when the notebook is the root section

fixes #475
Merge pull request #481 from twosigma/sjs/475

Handle when the notebook is the root section