YARN-2630. Prevented previous AM container status from being acquired by the current restarted AM. Contributed by Jian He.