fix for "nil can't be coerced into Float"

asm.max_grade is nil when there is no questions in an assessment