Bug 904345 - Handle the case of the 'ready' state
1. Add a case for the 'ready' state.
2. Clear the text content and l10n data if l10nId is empty.
Merge pull request #12383 from crh0716/904345

Bug 904345 - Handle the case of the 'ready' state r=kaze