Added handle for not scored exam case.
Fixed exam_type key in history view.