Bug 993193 - Move runtime localization logic post document loading for p...

...retranslation case. r=stas

https://bugzilla.mozilla.org/show_bug.cgi?id=993193