Checking for job process status inside a map task attempt when it's not ...

...the first attempt
Nit: this could simply be
    isThisAttemptTheFirst = attemptid.endsWith("0");