Minor fix in case *error is nil.