Bad weather and staffing shortages have grounded thousands of flights over the past few weeks. Here's how to handle it if it happens to you.