Adds missing closing tag for a div