On the convexity of relativistic ideal magnetohydrodynamics