Fix null check in AssessmentInstance model class