Ensure externalContext has been updated with correct one before setLocale() called.
  Prevents problems caused by setLocale() calling getELContext(), which may require ExternalContext depending on the Application instance being used