On the Motion of a Body with a Cavity Filled with Magnetohydrodynamic Fluid