When a defendant awaiting trial is committed to a mental health facility, bail shall be exonerated.
Utah Code § 77-15-8