Improved sufficient conditions for magnetohydrodynamic stability with closed field lines