Only end <div> folds when a foldend attribute is given to the closing tag

Fixes issue #32