You have to take the original flight to Dubai, the airline is then responsible for putting you up in a hotel, feeding you etc, as once you start the trip they are duty bound to get you home.