PR21531: fix crash on invalid with unexpanded pack in case value.