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.