Change status of latest submission to 'done'

Sometimes people click "I'm done" on an earlier iteration of an
exercise. In these cases, the earlier (superseded) submission was being
set to 'done' whereas the 'pending' one was left pending.