[default template] Fix forced relayout when body.style.display != block