fix validate_explain messages for unions (RT#89279)