hide scores from students in attempts table for muted submissions

fixes CNVS-8208

test plan:
  - create a new quiz as a teacher
  - mute the quiz in gradebook
  - have a student take the quiz
  - the student score in the attempts table should say "Not yet graded"

Change-Id: Ief963ee17fdf42117ebd0a47bf206493e82dcab1
Reviewed-on: https://gerrit.instructure.com/24540
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
be nicer in add_foreign_key_if_not_exists to retry partially created FKs

Change-Id: I4feb4871456a0307e87fb9ac5eff623997c23102
Reviewed-on: https://gerrit.instructure.com/24535
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
treesame commit of origin/stable/2013-09-14

Treesame-Commit-Id: 3b6790d8cf364dd73b6873987b743125d6d38109
treesame commit of origin/stable/2013-09-14

Treesame-Commit-Id: 002ca9be2a859e990b18cf2837c4c2bf51c70bb2
Merge remote-tracking branch 'upstream/stable' into stable