Fix crash in rabin2 -g (thanks @condret)