Fix unhelpful error message when nesting invalid.

See https://github.com/geier/khal/issues/105
Hooray for pull requests that come with tests.