Fixed a regression introduced in 9f7a01ef2bed8c0395a970286e8f87fd7d344b3b.
Ensured that the javascript_catalog view doesn't leak translations.