In such cases, they get a notification from the restaurant staff stating that certain foods are not available at that point in time. They would then try to communicate with you to fix another order or cancel the current one.