Fix semantics for nested comments

PR for https://github.com/backdrop/backdrop-issues/issues/236

This issue blocks the conversion of Bartik to HTML5 in https://github.com/backdrop/backdrop-issues/issues/200