change order of statements to fix s3 exercise save
Merge pull request #2370 from Stanford-Online/jbau-s3-exercise-fix

change order of statements to fix s3 exercise save