Fix possible NPE in RiftRegenerator.regenerate()