Fixed index out of bounds, can't update student answer

Can't update student if you save the answer to the same assignment
again.