Add an assertion instead of crashing when the scavenger goes past the end