YARN-2617. Fixed NM to not send duplicate container status whose app is not running. Contributed by Jun Gong