Bugfix for haml rendering when grade = nil.