They only need to get the value of transport to Coruscant, they don’t need to get the full value of what the ship is worth.
I mean if someone said they would give you a Lamborghini with broken engine in exchange for a ride to the next state, you wouldn’t take that deal? Sure it might be a headache for you to either tow it to a garage to get it repaired or find a buyer who will buy it as-is, but you’re talking about something like $100K in value just for giving some people a lift somewhere.
They could be out of there almost immediately if the safety of the Queen was top priority and were willing to take a huge loss on the sale of the ship.