Fixed wrong stopped time in webui for live tasks.
Fixed wrong stopped time in webui for live tasks.

Only set the terminal time if the last state is terminal.

Review: https://reviews.apache.org/r/49228/

chhsia0/mesos,yuquanshan/customizedMesos,abudnik/mesos,verizonlabs/mesos,kaysoky/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,yuquanshan/customizedMesos,craimbert/mesos,asamerh4/mesos,zmalik/mesos,Gilbert88/mesos,abudnik/mesos,neilconway/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,verizonlabs/mesos,jpeach/mesos,neilconway/mesos,zmalik/mesos,neilconway/mesos,reneploetz/mesos,zmalik/mesos,andschwa/mesos,neilconway/mesos,abudnik/mesos,chhsia0/mesos,chhsia0/mesos,verizonlabs/mesos,chhsia0/mesos,craimbert/mesos,andschwa/mesos,gsantovena/mesos,jpeach/mesos,zmalik/mesos,jpeach/mesos,verizonlabs/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,yuquanshan/customizedMesos,abudnik/mesos,kaysoky/mesos,jpeach/mesos,craimbert/mesos,yuquanshan/customizedMesos,neilconway/mesos,jpeach/mesos,chhsia0/mesos,dforsyth/mesos,reneploetz/mesos,gsantovena/mesos,kaysoky/mesos,dforsyth/mesos,dforsyth/mesos,chhsia0/mesos,chhsia0/mesos,andschwa/mesos,verizonlabs/mesos,dforsyth/mesos,yuquanshan/customizedMesos,zmalik/mesos,verizonlabs/mesos,reneploetz/mesos,craimbert/mesos,kaysoky/mesos,asamerh4/mesos,dforsyth/mesos,asamerh4/mesos,zmalik/mesos,abudnik/mesos,andschwa/mesos,neilconway/mesos,reneploetz/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,verizonlabs/mesos,asamerh4/mesos,neilconway/mesos,abudnik/mesos,craimbert/mesos,craimbert/mesos,dforsyth/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,gsantovena/mesos,Gilbert88/mesos,jpeach/mesos,Gilbert88/mesos,andschwa/mesos,jpeach/mesos,Gilbert88/mesos,asamerh4/mesos,gsantovena/mesos,andschwa/mesos,zmalik/mesos,reneploetz/mesos,reneploetz/mesos,craimbert/mesos,andschwa/mesos,gsantovena/mesos,kaysoky/mesos,reneploetz/mesos,kaysoky/mesos