Prevents rendering elements that have empty markup.