fix nil grades leading to error in d3 graph
fix d3 graph allowing null final grade