Grades controller bug fix

Bug fix for grades controller pertaining to penalty wizard. Addition of
nil values bug fixed!