Fix off-by-one in newly-introdcued GIN assertion.

Spotted by Alexander Korotkov