Aside from the craziness of the plan in general, you should be fine assuming everything is on time. Both flights will be in the mini non-Schengen area of T4. I don't think they really planned on anyone ever transiting there but you will just be offloaded right into the departure area of the next flight.