GOB: Fix another potential array overrun
GOB: Add a sanity check