TEZ-526. Fixes a race in container heartbeat where the TaskAttemptId was
being sent even after a task completes. Contributed by Hitesh Shah.