Fix for "TypeError: Illegal invocation" in i18n's core