Handle absence of primary key

Raise meaninful exception when a model doesn't have a primary key, which is required by Grid