YARN-2816. NM fail to start with NPE during container recovery. Contributed by Zhihai Xu