Bug 921808: Check DOM state before setting styles/content during load