Fixed bug that was causing upgrade code for grader report to always get stuck on version 2013052800.

Also reformatted upgrade code to follow standard Moodle coding conventions.