That's one of those "nearly impossible" scenarios (which do happen), but I'm sure they would take a crane and give it a pull one direction of the other. It would be a PR nightmare, but it's an easily remedied problem usually. Really the worst case scenario is a train with a bad wheel that stops it it an inversion. It's very rare though.
In Wallibi, Belgium a launched shuttle coaster got stuck upside down in a looping once, for about 2 hours if memory serves me right.