v.25.7Bug Fix (user-visible misbehavior in an official stable release)

INSERT SELECT with UNION ALL could lead

INSERT SELECT with UNION ALL could lead to a null pointer dereference in a corner case. This closes #83618. #83643 (Alexey Milovidov).