Ultrarelativistic Magnetohydrodynamic Jets in the Context of Gamma-Ray Bursts