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

1. Add a case for the 'ready' state.
2. Clear the text content and l10n data if l10nId is empty.

https://bugzilla.mozilla.org/show_bug.cgi?id=904345