Bug 921808: Check title before setting textContent to avoid repaint