An invariant‐preserving approach to robust finite‐element multibody simulation