Bug 1979502 - Check slices vector not empty before accessing the last slice r=sfink a=RyanVM
|aborted| is reset to false at the end of a slice but
GCRuntime::waitBackgroundSweepEnd can be called outside of a slice.
Differential Revision: https://phabricator.services.mozilla.com/D260685