YARN-2377. Localization exception stack traces are not passed as diagnostic info. Contributed by Gera Shegalov