Halo Mass Estimation for Galaxy Groups: The Role Of Magnitude Gaps