storage: fix a bug that inplace alter table with no primary key crashes

[groonga-dev,02227]

Reported by yoku0825. Thanks!!!