Bug 640158 - restrict restoring persisted attributes when loading overlays after the first document load, r=bz