resolved issue #82: undefined method 'before' for nil:NilClass in filter/toc.rb