Throws exception in attempt to delete a record from a model which primary key is empty.