[Issue #194] [html-mode] Fix error when post-handler for tag is called after wrapping