Well at least she is alive so thinhs can still be salvaged assuming they play their cards right.
Of course this could be a trap, if the king says he ordered her to clean, the princess can claim she saw her stealing or etc. And its maids words against hers. So for this to work he has to say he gave her a secret asignment.