Fixed bug https://github.com/leo-editor/leo-editor/issues/31
'undo' on a freshly-loaded outline containing chapters removes chapters.
All tests pass, as do some hand tests.

Leo build: 20141018064158