Revert "internal/core/adt: remove now-unnecessary panic workaround"
This reverts https://cuelang.org/cl/1212273.
The added test case still causes a panic without the workaround.
We revert before we attempt a cleanup or better fix again,
because we intend to backport this safe fix to v0.16.
Fixes #4339.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Iec7380dc2982c4a8b8f56249ef51337a1536b2ba
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1236175
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>