8266018: Shenandoah: fix an incorrect assert

Reviewed-by: rkennke
Backport-of: 2dd56676fb564072f73f5fd9e591bda7922523ac
1 file changed