Bug 1076327 - Ignore screenchange event if lockscreen is not ready

If we set two 'ready = true', could we put it before `the if...else`?