Removes stray end tag div.