Cleans up self closing tags in base template.