Fix segfault in ragg2 -P -10 (thanks @maijin) (thanks @maijin)