Observation of magnetohydrodynamic stability limit in a cusp-anchored gas-dynamic trap